package com.xjscrm.console.mapper;

import com.xjscrm.common.entity.MaterialTag;
import com.xjscrm.console.param.materialLibrary.MaterialLibraryTagQuery;
import com.xjscrm.console.vo.MaterialLibraryTagVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MaterialTagMapper {
    int insert(MaterialTag materialTag);

    List<MaterialLibraryTagVo> getMaterialLibraryTagList(MaterialLibraryTagQuery materialLibraryTagQuery);

    MaterialTag getById(@Param("id") Long id, @Param("merId") Long merId);

    int update(MaterialTag materialTag);

    int delById(@Param("id") Long id, @Param("merId") Long merId);
}
